package com.touchwisdom.fetch.core.model.base;

import com.jfinal.autotable.AutoColumn;
import com.touchwisdom.modular.common.model.BaseEntity;

@SuppressWarnings({ "serial", "unchecked" })
public class BaseFileFetch<M extends BaseFileFetch<M>> extends BaseEntity<M> {
	public M setTitle(java.lang.String title) {
		set("title", title);
		return (M) this;
	}

	@AutoColumn(length = 32, nullable = false)
	public java.lang.String getTitle() {
		return getStr("title");
	}

	public M setState(java.lang.String state) {
		set("state", state);
		return (M) this;
	}

	@AutoColumn(length = 2, nullable = false, value = "N")
	public java.lang.String getState() {
		return getStr("state");
	}

	public M setFilePath(java.lang.String filePath) {
		set("filePath", filePath);
		return (M) this;
	}

	@AutoColumn(nullable = false, value = "0")
	public java.lang.Boolean isRecur() {
		return getBoolean("recur");
	}

	public M setRecur(java.lang.Boolean recur) {
		set("recur", recur);
		return (M) this;
	}

	@AutoColumn(length = 1024, nullable = false)
	public java.lang.String getFilePath() {
		return getStr("filePath");
	}
}